﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StoreManagementSystem.DomainObjects;

namespace StoreManagementSystem
{
    public partial class _Default : System.Web.UI.Page
    {
        StoreUser user;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["loggeduser"] != null)
            {
                user = (StoreUser)Session["loggeduser"];
                lblUserMessage.Text = "Hello " + user.FirstName + " " + user.LastName;
                lblUserMessage.Visible = true;
                multiviewHome.SetActiveView(loggedin);
            }
            else
            {
                multiviewHome.SetActiveView(anon);
            }

        }
    }
}
